package org.example.fastproject.web.sys.model.dto.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author 王海舟
 * @Date 2023/2/2 11:36
 * @PackageName:org.example.fastproject.web.sys.model.dto.user
 * @ClassName: UserRoleDto
 * @Description: 用户分配角色
 * @Version 1.0
 */
@Data
@ApiModel(description = "用户分配角色")
public class UserRoleDto {
    @ApiModelProperty("用户id")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @ApiModelProperty("角色id集合")
    @NotEmpty(message = "角色id不能为空")
    private List<Long> roleIds;
}
